#ifndef SCHEDULEINFO_H
#define SCHEDULEINFO_H

#include "baseresp.h"
#include <QMetaType>

class ScheduleInfo : public BaseResp
{
public:

    typedef struct schedule_s{
        QString type;                           //类型
        QString conference_number;              //会议号
        QString name;                           //会议名称
        QString start_time;                     //开始时间
        QString end_time;                       //结束时间
        QString lecturer_device;                //主讲端
        QList<QString> participants;            //参与者
        QString lecturer;                        //主讲人

        schedule_s()
        {
            type = "";
            conference_number = "";
            name = "";
            start_time = "";
            end_time = "";
            lecturer_device = "";
            lecturer = "";
            participants.clear();
        }
    }schedule_t;

    ScheduleInfo();

    void unserialize(QString json);

    QList<schedule_t> getSchedules() const;
    void setSchedules(const QList<schedule_t> &value);

private:
    QList<schedule_t> schedules;
};

typedef QList<ScheduleInfo::schedule_t> LIST_SCHEDULES;

Q_DECLARE_METATYPE(ScheduleInfo)


#endif // SCHEDULEINFO_H
